
import styled from 'styled-components';
import border from 'utils/border.js'

export const DetailsStyle = styled.div`
    font-size: .14rem;
    flex: 1;
    display:flex;
    flex-direction:column;
    background: #f5f5f5;
`

export const DetailsHeadStyle = styled.div`
    flex: 1;
    height:6.11rem;
    overflow: hidden;
`

export const DetailsContainerStyle = styled.div`
    width:100%;
`

export const DetailsSectionStyle = styled.div`
    font-size: .1875rem;
    box-sizing: border-box;
    background:#fff;
    .goods-img{
        width:100%;
        a{
            display: block;
            width: 100%;
            img{
                width: 100%;
                display: block;
            }
        }
    }
    .goods-price-msg {
        font-size: .14rem;
        padding: .1rem .12rem .12rem;
        line-height: .4rem;
        margin-bottom: .1rem;
        font-weight: 400;
        .tuan-alone{
            display:flex;
            .tuan-price {
                color: #f33873;
                font-family: arial;
                b{
                    font-size: .24rem;
                    font-weight:400;
                    vertical-align: middle;
                }
                strong{
                    font-size: .11rem;
                    line-height: .11rem;
                    padding: .02rem;
                    border-radius: .04rem;
                    margin-top: -.05rem;
                    margin-left: .02rem;
                    color: #fff;
                    background: #fe4070;
                    vertical-align: middle;
                    font-weight: 400;
                }
            }
            .del-price {
                font-size: .15rem;
                margin-left: .1rem;
                color: #666;
                span{
                    font-size: .14rem;
                }
            }
            .tuan_number {
                color: #666;
                flex:1;
                display:flex;
                justify-content:flex-end;
            }

        }

        #price-details-box{
            font-size: .14rem;
            .price-details-box {
                margin-bottom: .12rem;
                font-size: .14rem;
                line-height: .14rem;
                .price-details {
                    color: #999;
                    padding-right: .1rem;
                    display: inline-block;
                }
                i{
                    color: #999; 
                }
            }
        }
        #countDown{
            display:flex;
            justify-content:space-between;
            color: #666;
            line-height: .18rem;
        }
    }
`

export const DetailsPriceMask = styled.div`
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 16;
    display: block;
    transform-origin: 0px 0px;
    opacity: 1;
    .price-mask-outer{
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.5);
        left: 0;
        top: 0;
        .price-mask-content{
            position: relative;
            z-index: 2;
            width: 80%;
            margin: 43% auto 0;
            border-radius: .05rem;
            background: #fff;
            box-sizing: border-box;
            .price-mask-details{
                height: .4rem;
                line-height: .4rem;
                display:flex;
                justify-content:space-between;
                border-bottom: .02rem solid rgba(0,0,0,.08);
                h3{
                    margin-left:.2rem;
                    color: #333;
                }
                i{
                    font-size:.2rem;
                    color:#696969;
                    margin:.1rem;
                }
            }
            .price-content{
                height: .5rem;
                line-height: .5rem;
                color: #666;
                padding-left:.2rem;
            }
            
        }
    }
`

export const DetailsGoods = styled.section`
    padding: .12rem;
    font-size: .14rem;
    line-height: .2rem;
    color: #333;
    margin-bottom: .1rem;
    background-color: #fff;
`
export const DetailsRuleWrap = styled.section`
    width: 100%;
    background: #fff;
    overflow: hidden; 
    margin-bottom: .1rem;
    .course-title{
        box-sizing: border-box;
        height: .4rem;
        line-height: .14rem;
        padding: .13rem .12rem;
        font-size: .14rem;
        font-weight: 400;
        display:flex;
        justify-content:space-between;
    }
    .course-wrap {
        padding-left: .12rem;
        padding-right: .12rem;
        margin:.12rem 0;
        display:flex;
        justify-content:space-around;
        .course-item:first-child {
            width: .75rem;
            padding-left: 0;
        }
        
        .course-item {
            font-size: .13rem;
            text-align:center;
            color: #666;
            
        }
        .course-itemon {
            color: #fe4070;
        }
        span{
            font-size:.3rem;
            padding-left:.1rem;
            color: #666;
        }
    }
`

export const DetailsFreeIcon = styled.section`
    padding: 15px 0;
    margin-bottom: 10px;
    background-color:#fff;
    width: 100%;
    .detail_info_item{
        font-size:.14rem;
        display:flex;
        justify-content:space-around;
        align-items:center;
        a{
            img {
                margin: 0 auto;
                display: block;
                width: .35rem;
            }
            div{
                color: #666;
                margin-top:.2rem;
            }
        }
    }
`

export const DetailsShowNav = styled.div`
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background-color: #fff; 
    font-size: .14rem;
    margin-bottom:.04rem;
    .tab-box {
        width: 100%;
        height: .44rem;
        .tuwen-tab {
            width: 100%;
            height: .44rem;
            color: #666;
            font-size: 13px;
            box-sizing: border-box;
            top: 0;
            z-index: 19;
            border-bottom: .01rem solid #eee;
            .cur {
                color: #fe4070;
                .pa {
                    display: inline-block;
                    bottom: 0;
                    left: 26%;
                    width: .6rem;
                    height: .02rem;
                    border-radius: .01rem .01rem 0 0;
                    background-color: #fe4070;
                    position: absolute;
                }
            }
            li {
                -webkit-tap-highlight-color: rgba(255,255,255,0);
                display: inline-block;
                width: 32%;
                line-height: .44rem;
                text-align:center;
                position:relative;
            }
        }
    }
`



export const DetailsNav = styled.div`
    background-color: #fff; 
    font-size: .14rem;
    margin-bottom:.04rem;
    .tab-box {
        width: 100%;
        height: .44rem;
        .tuwen-tab {
            width: 100%;
            height: .44rem;
            color: #666;
            font-size: 13px;
            box-sizing: border-box;
            top: 0;
            z-index: 19;
            border-bottom: .01rem solid #eee;
            .cur {
                color: #fe4070;
                .pa {
                    display: inline-block;
                    bottom: 0;
                    left: 26%;
                    width: .6rem;
                    height: .02rem;
                    border-radius: .01rem .01rem 0 0;
                    background-color: #fe4070;
                    position: absolute;
                }
            }
            li {
                -webkit-tap-highlight-color: rgba(255,255,255,0);
                display: inline-block;
                width: 32%;
                line-height: .44rem;
                text-align:center;
                position:relative;
            }
        }
    }
`

export const DetailsImgStyle =styled.div`
    width:100%;
    img{
        width:100%;
    }
`

export const DetailsTopStyle = styled.div`
    width:.5rem;
    height:.5rem;
    border-radius:50%;
    font-size:.3rem;
    border:.02rem solid #ccc;
    display:flex;
    justify-content:center;
    align-items:center;
    background-color:#fff;
    position:fixed;
    right:.2rem;
    bottom:.7rem;
`



export const FooterStyle = border({
    component : styled.div`
        height: .56rem;
        padding: .1rem 0;
        width: 100%;
        background: #fff;
        z-index: 8;
        box-sizing: border-box;
        display:flex;
        i{
            font-size:.30rem;
            color: #999;
            margin-left:.2rem;
            font-style:normal;
        }
    `,
    width : '1px 0 0 0',
    style : 'solid',
    color : '#eee',
    radius : 0,
})



export const FooterButtonStyle = styled.div`
    display:flex;
    flex: 1;
    justify-content: flex-end;
`
export const FooterAloneStyle = styled.div`
    font-size: .12rem;
    line-height: .14rem;
    border-radius: .2rem;
    margin-right: .15rem;
    border: 1px solid #fe4070;
    display:flex;
    flex-direction:column;
    color: #fe4070;
    width: 1rem;
    justify-content:center;
    align-items:center;
    i{
        margin:0;
        font-size: .12rem;
        line-height: .14rem; 
        color: #fe4070;
    }
`

export const FooterPostageStyle = styled.div`
    font-size: .12rem;
    line-height: .14rem;
    border-radius: .2rem;
    margin-right: .15rem;
    border: 1px solid #fe4070;
    display:flex;
    flex-direction:column;
    color: #fff;
    background: #fe4070;
    width: 1rem;
    justify-content:center;
    align-items:center;
    i{
        margin:0;
        font-size: .12rem;
        line-height: .14rem; 
        color: #fff;
    }
`